<!DOCTYPE html>
<!--[if IE 8]>
	<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" lang="zh-CN">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name='robots' content='noindex,follow' />
<title>${site.name!}-找回密码</title>
<link rel="stylesheet" href="${url}/template/themes/${site.theme}/css/login.css" type="text/css" media="all" />
</head>
<body class="login login-action-login wp-core-ui locale-zh-cn">
	<div id="login">
		<?if(flag! == 1) {?>
		<div id="_msg" style="color:red;">${error!}</div>
		<form name="loginForm" id="loginForm" action="${url}/user/findPwd" method="post">
			<p>
				<label for="login_email">邮箱<br />
				<input type="text" name="email" id="login_email" class="input" value="" size="20" autocomplete="off"/>
				</label>
			</p>
			<p class="submit">
				<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="提交" />
			</p>
		</form>
		<?} else {?>
		<div style="color:#fff;">${msg!}</div>
		<?}?>
		<p id="nav">
			<a href="${url}/user/login">登录</a> | <a href="${url}/user/register">注册</a>
		</p>
		<p id="backtoblog"><a href="${url}" title="不知道自己在哪？">&larr; 回到【${site.name}】</a></p>
	</div>
	<div class="clear"></div>
<?if(flag! == 1) {?>
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/jquery.min.js'></script>
<script type="text/javascript" src='${url}/js/jquery.validate.min.js'></script>
<script type="text/javascript" src='${url}/js/jquery.form.min.js'></script>
<script type="text/javascript">
jQuery(function($) {
	$('#loginForm').validate({
		rules:{
			email:{
				required: true,
				email:true
			}
		},
		messages:{
			email:{
				required: "请输入邮箱！",
				email:"请输入合法的email地址！"
			}
		},
		showErrors : function(errorMap, errorList) {  
			var msg = '';  
			$.each(errorList, function(i, v) {  
				msg += (v.message + '\r\n'); 
				return false; 
			});  
			$('#_msg').addClass('red').text(msg);
		} 
	});
});
</script>
<?}?>
</body>
</html>